package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 工作流应用信息
 *
 * @author song
 * @since 2019-12-28
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WfAppInfo对象", description="工作流应用信息")
public class WfAppInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "应用id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "应用名称")
    @TableField("app_name")
    private String appName;

    @ApiModelProperty(value = "工作流程图信息")
    @TableField("app_chart_info")
    private String appChartInfo;

    @ApiModelProperty(value = "创建人")
    @TableField("create_user_id")
    private String createUserId;

    @ApiModelProperty(value = "创建人姓名")
    @TableField(exist = false)
    private String createUserName;

    @ApiModelProperty(value = "修改人")
    @TableField("update_user_id")
    private String updateUserId;

    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    @TableField("gmt_modified")
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "是否已删除 yes_no")
    @TableField("is_deleted")
    private Integer isDeleted;


}
